window.addEventListener('load',function(){
    window.addEventListener("resize", adjust);
    adjust();
});
function adjust(){
    if (innerWidth < 375) {
        document.documentElement.style.fontSize = 50 + 'px';
    }else{
        document.documentElement.style.fontSize = innerWidth/375*50 + 'px';
    }
}